package com.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.CstCustomerMapper;
import com.entity.CstCustomer;
import com.entity.CstCustomerExample;
import com.service.CstCustomerService;

@Service("cstService")
public class CstCustomerServiceImpl implements CstCustomerService {
	@Autowired
	private CstCustomerMapper cstCustomerMapper;
	@Override
	public int deleteByPrimaryKey(Long custManagerId) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(CstCustomer record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertSelective(CstCustomer record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<CstCustomer> selectByExample(CstCustomerExample example) {
		// TODO Auto-generated method stub
		return cstCustomerMapper.selectByExample(example);
	}

	@Override
	public CstCustomer selectByPrimaryKey(Long custManagerId) {
		// TODO Auto-generated method stub
		return cstCustomerMapper.selectByPrimaryKey(custManagerId);
	}

	@Override
	public List<CstCustomer> selectAllCst() {
		// TODO Auto-generated method stub
		return cstCustomerMapper.selectAllCst();
	}

	@Override
	public int updateByPrimaryKeySelective(CstCustomer record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKey(CstCustomer record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public CstCustomerMapper getCstCustomerMapper() {
		return cstCustomerMapper;
	}

	public void setCstCustomerMapper(CstCustomerMapper cstCustomerMapper) {
		this.cstCustomerMapper = cstCustomerMapper;
	}

	//查询所有，按等级查询
	@Override
	public List<CstCustomer> getAllwxx() {
		// TODO Auto-generated method stub
		return cstCustomerMapper.getAllwxx();
	}

	//查询所有，按信用度查询
	@Override
	public List<CstCustomer> getAllwxxa() {
		// TODO Auto-generated method stub
		return cstCustomerMapper.getAllwxxa();
	}

	//查询所有，按满意度查询
	@Override
	public List<CstCustomer> getAllwxxb() {
		// TODO Auto-generated method stub
		return cstCustomerMapper.getAllwxxb();
	}

}
